
# modify those variable for every environment
# VIRTUAL_HOME should match which setted in bashrc
VIRTUAL_HOME=$HOME
VIRTUAL_LEVEL=2

# bash --rcfile $HOME/.ycrc/bashrc && exit 0
# bash --rcfile $HOME/yc/.ycrc/bashrc && exit 0

export VIRTUAL_HOME
export VIRTUAL_RC_HOME=$VIRTUAL_HOME/.ycrc
if [ $SHLVL -eq $VIRTUAL_LEVEL ]; then
    if [ -f "$VIRTUAL_RC_HOME/bashrc" ]; then
        # echo "souring... common bash env: $VIRTUAL_RC_HOME/bashrc"
        . "$VIRTUAL_RC_HOME/bashrc"
    fi
    cd $VIRTUAL_HOME
fi

